package com.java.zhuiyun.api.idiomAdventureManager.mapper;

import com.java.zhuiyun.api.idiomAdventureManager.entity.IdiomAdventureQuestionBank;
import com.java.zhuiyun.api.idiomAdventureManager.model.IdiomAdventureQuestionBankModel;
import com.java.zhuiyun.common.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName IdiomAdventureQuestionBankMapper
 * @Description TODO 冒险题库管理
 * @Author WX
 * @Date 2023/9/13 9:21
 **/
@Mapper
public interface IdiomAdventureQuestionBankMapper extends BaseMapper<IdiomAdventureQuestionBank> {

    /*
     * @Author WX
     * @Description 模糊查询
     * @Date 2023/9/13 10:26
     * @Return
     * @param idiomAdventureValue
     */
    List<IdiomAdventureQuestionBankModel> selectIdiomAdventureQuestionBankAllByOne(IdiomAdventureQuestionBank idiomAdventureQuestionBank);

    /*
     * @Author WX
     * @Description 添加词库
     * @Date 2023/9/13 11:18
     * @Return
     * @param idiomAdventureQuestionBank
     */
    int addIdiomAdventureQuestionBank(IdiomAdventureQuestionBank idiomAdventureQuestionBank);

    /*
     * @Author WX
     * @Description 查询单个
     * @Date 2023/9/13 14:01
     * @Return
     * @param id
     */
    IdiomAdventureQuestionBank findIdiomAdventureQuestionBankById(Integer id);

    /*
     * @Author WX
     * @Description 修改单个
     * @Date 2023/9/13 14:07
     * @Return
     * @param idiomAdventureQuestionBank
     */
    int updateIdiomAdventureQuestionBankById(IdiomAdventureQuestionBank idiomAdventureQuestionBank);

    /*
     * @Author WX
     * @Description 删除
     * @Date 2023/9/13 14:17
     * @Return
     * @param id
     */
    int deleteIdiomAdventureQuestionBankById(Integer id);

    /*
     * @Author WX
     * @Description 数据库随机查10条
     * @Date 2023/9/14 13:56
     * @Return
     * @param null
     */
    List<IdiomAdventureQuestionBank>  selectIdiomAdventureQuestionBankRadomByTen();
}
